home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / jaz_clib.arc / JZMOVWND.C < prev    next >
Text File  |  1989-04-09  |  813b  |  29 lines

  1. /*
  2. ┌────────────────────────────────────────────────────────────────────────────┐
  3. │ Title   : jzmovwnd                                 │
  4. │ Purpose : Restore a window to a given set of coordinates             │
  5. │                                         │
  6. │    Written by Jack Zucker - 75766,1336    301-794-5950  on 1/15/85      │
  7. └────────────────────────────────────────────────────────────────────────────┘
  8. */
  9. #include <jaz.h>
  10. #include <jzscreen.h>
  11.  
  12. jzmovwnd ( fwindow , frow , fcol )
  13. TWINDOW *fwindow;
  14. int frow,fcol;
  15. {
  16.   int wscrseg;
  17.   int wdseg;
  18.  
  19.   wdseg = getds();
  20.  
  21.   if (MEMB(0x40,0x49)==3)    /* true if color screen   */
  22.     wscrseg = 0xB800;        /* color mode */
  23.   else
  24.     wscrseg = 0xB000;        /* mono  mode */
  25.  
  26.   moves(wdseg,fwindow->buf,wscrseg,frow * 160 + (fcol << 1),
  27.      fwindow->row2-fwindow->row1+1,fwindow->col2-fwindow->col1+1);
  28. }
  29.